package com.hzt.system.service;

import com.hzt.system.common.DataGridView;
import com.hzt.system.domain.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hzt.system.vo.RoleVo;

import java.util.List;

public interface RoleService extends IService<Role>{


    DataGridView loadAllRole(RoleVo roleVo);

    Role saveRole(Role role);

    Role updateRole(Role role);

    //根据角色id查找权限和菜单
    List<Integer> queryMenuIdsByRid(Integer id);

    void saveRoleMenu(Integer rid, Integer[] mids);

    DataGridView loadAllAvailableRoleNoPage(RoleVo roleVo);

    List<String> queryRoleNamesByUserId(Integer id);
}
